<template>
  <div class="app">
      <span>{{$route.query}}</span>
        <div>
        <router-link to="/test/test3">测试页面3</router-link>
        <router-link to="/test/test4">测试页面4</router-link>
      </div>
      <router-view ></router-view>
  </div>
</template>

<script>
export default {
  mounted() {
    const {name} = this.$route.query
    console.log(name)
  }
}
</script>

<style scoped>

</style>